import React from 'react';
import { Card, Tabs } from 'antd';
import { NODE_TYPE } from '../../constants/default';
import { Content } from './Content';
import { Records } from './Records';

const onChange = (key: string) => {
  console.log(key);
};

const Rectification: React.FC = () => {
  return (
    <Card bordered >
      <Tabs defaultActiveKey="1" items={[
        {
          key: '1',
          label: '整改报告',
          children: <Content />,
        },
        {
          key: '2',
          label: '提交审批记录',
          children: <Records module={NODE_TYPE.RECTIFICATION} />,
        },
      ]} onChange={onChange} />
    </Card>
  );
};

export default Rectification;
